package com.shape;

public class Circle implements ShapeInterface {
    double radius;
    private String shape = "圆形";

    public Circle(){};

    public Circle(double[] arr) {
        this.radius = arr[0];
    }

    @Override
    public double perimeter() {
        return (2 * 3.14 * this.radius);
    }

    @Override
    public double area() {
        return (3.14 * this.radius * this.radius);
    }

    public String getShape() {
        return this.shape;
    }

    public void printParams(){
        System.out.println("它的参数值为：" + this.radius);
    }
}
